home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / DirectX / dxsdk_oct2004.exe / dxsdk.exe / Samples / C++ / Direct3D / DXTex / dialogs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-09-27  |  4.9 KB  |  204 lines

  1. // Dialogs.h : header file
  2. //
  3. #if !defined(AFX_DIALOGS_H__14A2C924_FB41_4BB7_92E4_DBA7CAF1FA06__INCLUDED_)
  4. #define AFX_DIALOGS_H__14A2C924_FB41_4BB7_92E4_DBA7CAF1FA06__INCLUDED_
  5.  
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CNewTextureDlg dialog
  12.  
  13. class CNewTextureDlg : public CDialog
  14. {
  15. // Construction
  16. public:
  17.     CNewTextureDlg(CWnd* pParent = NULL);   // standard constructor
  18.  
  19.     void SetMaxTextureSize( int dwWidth, int dwHeight ) { m_dwMaxWidth = dwWidth; m_dwMaxHeight = dwHeight; }
  20.  
  21. // Dialog Data
  22.     //{{AFX_DATA(CNewTextureDlg)
  23.     enum { IDD = IDD_NEWTEXTURE };
  24.     int     m_iTexType;
  25.     int     m_dwWidth;
  26.     int     m_dwHeight;
  27.     int     m_dwDepth;
  28.     int     m_iFmt;
  29.     CString m_strFmtDesc;
  30.     int     m_numMips;
  31.     D3DFORMAT m_fmt;
  32.     //}}AFX_DATA
  33.  
  34.  
  35. // Overrides
  36.     // ClassWizard generated virtual function overrides
  37.     //{{AFX_VIRTUAL(CNewTextureDlg)
  38.     protected:
  39.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  40.     //}}AFX_VIRTUAL
  41.  
  42. // Implementation
  43. protected:
  44.  
  45.     // Generated message map functions
  46.     //{{AFX_MSG(CNewTextureDlg)
  47.     virtual BOOL OnInitDialog();
  48.     afx_msg void OnChangeTextureType();
  49.     afx_msg void OnChangeFormat();
  50.     virtual void OnOK();
  51.     //}}AFX_MSG
  52.     DECLARE_MESSAGE_MAP()
  53.  
  54.     int m_dwMaxWidth;
  55.     int m_dwMaxHeight;
  56. };
  57.  
  58.  
  59. /////////////////////////////////////////////////////////////////////////////
  60. // CCubeMapDlg dialog
  61.  
  62. class CCubeMapDlg : public CDialog
  63. {
  64. // Construction
  65. public:
  66.     CCubeMapDlg(CWnd* pParent = NULL);   // standard constructor
  67.  
  68. // Dialog Data
  69.     //{{AFX_DATA(CCubeMapDlg)
  70.     enum { IDD = IDD_CUBEMAP };
  71.     INT     m_iFace;
  72.     //}}AFX_DATA
  73.  
  74. // Overrides
  75.     // ClassWizard generated virtual function overrides
  76.     //{{AFX_VIRTUAL(CCubeMapDlg)
  77.     protected:
  78.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  79.     //}}AFX_VIRTUAL
  80.  
  81. // Implementation
  82. protected:
  83.  
  84.     // Generated message map functions
  85.     //{{AFX_MSG(CCubeMapDlg)
  86.         // NOTE: the ClassWizard will add member functions here
  87.     //}}AFX_MSG
  88.     DECLARE_MESSAGE_MAP()
  89. };
  90.  
  91.  
  92. /////////////////////////////////////////////////////////////////////////////
  93. // CVolumeMapDlg dialog
  94.  
  95. class CVolumeMapDlg : public CDialog
  96. {
  97. // Construction
  98. public:
  99.     CVolumeMapDlg(CWnd* pParent = NULL);   // standard constructor
  100.  
  101. // Dialog Data
  102.     //{{AFX_DATA(CVolumeMapDlg)
  103.     enum { IDD = IDD_VOLUMEMAP };
  104.     int     m_powLayers;
  105.     //}}AFX_DATA
  106.  
  107.  
  108. // Overrides
  109.     // ClassWizard generated virtual function overrides
  110.     //{{AFX_VIRTUAL(CVolumeMapDlg)
  111.     protected:
  112.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  113.     //}}AFX_VIRTUAL
  114.  
  115. // Implementation
  116. protected:
  117.  
  118.     // Generated message map functions
  119.     //{{AFX_MSG(CVolumeMapDlg)
  120.         // NOTE: the ClassWizard will add member functions here
  121.     //}}AFX_MSG
  122.     DECLARE_MESSAGE_MAP()
  123. };
  124.  
  125.  
  126. /////////////////////////////////////////////////////////////////////////////
  127. // CChangeFmtDlg dialog
  128.  
  129. class CChangeFmtDlg : public CDialog
  130. {
  131. // Construction
  132. public:
  133.     CChangeFmtDlg(CWnd* pParent = NULL);   // standard constructor
  134.  
  135. // Dialog Data
  136.     //{{AFX_DATA(CChangeFmtDlg)
  137.     enum { IDD = IDD_CHANGEFORMAT };
  138.     int     m_iFmt;
  139.     CString m_strFmtDesc;
  140.     //}}AFX_DATA
  141.     BOOL m_bVolume;
  142.     D3DFORMAT m_fmt;
  143.     int     m_iFmtInitial;
  144.  
  145. // Overrides
  146.     // ClassWizard generated virtual function overrides
  147.     //{{AFX_VIRTUAL(CChangeFmtDlg)
  148.     protected:
  149.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  150.     //}}AFX_VIRTUAL
  151.  
  152. // Implementation
  153. protected:
  154.  
  155.     // Generated message map functions
  156.     //{{AFX_MSG(CChangeFmtDlg)
  157.     virtual BOOL OnInitDialog();
  158.     afx_msg void OnChangeFmt();
  159.     //}}AFX_MSG
  160.     DECLARE_MESSAGE_MAP()
  161. private:
  162.     void UpdateFmtDesc();
  163. };
  164.  
  165. /////////////////////////////////////////////////////////////////////////////
  166. // CResizeDialog dialog
  167.  
  168. class CResizeDialog : public CDialog
  169. {
  170. // Construction
  171. public:
  172.     CResizeDialog(CWnd* pParent = NULL);   // standard constructor
  173.  
  174. // Dialog Data
  175.     //{{AFX_DATA(CResizeDialog)
  176.     enum { IDD = IDD_RESIZE };
  177.     UINT    m_newHeight;
  178.     UINT    m_newWidth;
  179.     CString    m_oldHeight;
  180.     CString    m_oldWidth;
  181.     //}}AFX_DATA
  182.  
  183.  
  184. // Overrides
  185.     // ClassWizard generated virtual function overrides
  186.     //{{AFX_VIRTUAL(CResizeDialog)
  187.     protected:
  188.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  189.     //}}AFX_VIRTUAL
  190.  
  191. // Implementation
  192. protected:
  193.  
  194.     // Generated message map functions
  195.     //{{AFX_MSG(CResizeDialog)
  196.     //}}AFX_MSG
  197.     DECLARE_MESSAGE_MAP()
  198. };
  199.  
  200. //{{AFX_INSERT_LOCATION}}
  201. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  202.  
  203. #endif // !defined(AFX_DIALOGS_H__14A2C924_FB41_4BB7_92E4_DBA7CAF1FA06__INCLUDED_)
  204.